using System;
using BaseAmd.Mmp;
using SiemensAmd.Mmp;
using SiemensAmd.Mmp.Http.Net;
using SiemensAmd.Mmp.Http.QT;

namespace AmdContext
{
	public class ProgManagerFactory
	{
		public static IProgHandler GetProgHandler(ProgApiResources apiResources)
		{
			return apiResources.ProgApiType switch
			{
				ProgApiTypeEnum.Ssh => new SieCncScp(apiResources), 
				ProgApiTypeEnum.DevHttpNet => new ProgHttpHandlerNet(apiResources), 
				ProgApiTypeEnum.DevHttpQt => new ProgHttpHandlerQt(apiResources), 
				_ => throw new Exception("未实现的接口apiResources"), 
			};
		}
	}
}
